<%@ Control Language="VB" AutoEventWireup="false" CodeFile="ContactPanel.ascx.vb" Inherits="Controls_ContactPanel" %>
<asp:Panel ID="pnlContactForm" runat="server">
<fieldset id="contactform">
<legend>...or contact us by email</legend>
<dl id="enquirylist">
    <dt><label for="ContactPanel_txtName" id="yourname">Your Name</label></dt><dd><asp:TextBox ID="txtName" runat="server" />
    </dd>
    <dt><label for="ContactPanel_txtEmail" id="youremail">Your Email</label></dt><dd><asp:TextBox ID="txtEmail" runat="server" />
            <asp:RequiredFieldValidator 
                ID="valEmailPresent" 
                runat="server" 
                ControlToValidate="txtEmail"
                ErrorMessage="RequiredFieldValidator" SetFocusOnError="True" Display="Dynamic">Please enter an email address</asp:RequiredFieldValidator><asp:RegularExpressionValidator 
                ID="valEmailFormat" 
                runat="server" 
                ErrorMessage="Email address not valid" 
                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                ControlToValidate="txtEmail" SetFocusOnError="True" Display="Dynamic" />
    </dd>
    <dt><label for="ContactPanel_txtEnquiry" id="yourenquiry">Your Enquiry</label></dt><dd><asp:textbox id="txtEnquiry" TextMode="multiLine" runat="server" />
        <asp:RequiredFieldValidator ID="valEnquiry" runat="server" ErrorMessage="Please enter an enquiry" ControlToValidate="txtEnquiry" SetFocusOnError="True" Display="Dynamic" />
    </dd>
</dl>
        
<span id="buttonsection">
    <asp:Button ID="btnSend" text="Send" runat="server" />
</span>
</fieldset>
</asp:Panel>
&nbsp;
<asp:Panel ID="pnlThankYou" runat="server">
<div id="thankyou">
    <label id="thankyoumessage">Your enquiry has been submitted...</label>
</div>
</asp:Panel>